package com.ruoyi.datastatistics.mapper;

import com.ruoyi.datastatistics.domain.maindata.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 小-历史数据Mapper接口
 *
 * @author ruoyi
 * @date 2023-09-06
 */
public interface MainMapper
{
    //顶部设备数据
    List<MainHeadTerminalsDbData> mainHeadTerminalsDbData();

    //顶部用户数据
    MainHeadUsersDbData mainHeadUsersDbData();

    //顶部在线设备数
    Integer getOnlineCountDb();

    //顶部总设备数量
    Integer getTotalTerminalsCount();

    //顶部总设备数量
    MainDayDosageDb getYesterdayDosage();

    //大表预警图表
    List<MainChartWarnDataDb> getMainChartWarnDataDb(@Param(value = "startTime")String startTime,@Param(value = "endTime")String endTime);

    //大表预警图表
    List<MainMonthDosageDb> getMainMonthDosageDb(@Param(value = "feezeTime")String feezeTime);

    //大表预警图表
    List<MainDayDosageDb> getMainDayDosageDb(@Param(value = "getTimeN")String getTimeN);

}
